import axios from "axios";

axios.interceptors.request.use(
  (config) => {
    console.log(config);
    return config;
  },
  (error) => {
    console.log(error);
  }
);

axios
  .get("http://httpbin.org/get")
  .then((res) => {
    console.log(res);
  })
  .catch((error) => {
    console.log(error);
  });
